//
//  FontAndColorMacros.h
//
//  颜色与字体宏
//

#ifndef FontAndColorMacros_h
#define FontAndColorMacros_h

//字体大小
#define changeFont(A)        [UIFont systemFontOfSize:(A*GETPIXEL)]
#define Font(A)        [UIFont systemFontOfSize:(A)]
#define FontBold(A)    [UIFont boldSystemFontOfSize:(A)]
#define Font_PFR(font) [UIFont fontWithName:KPFR size:font]
#define Font_PFM(font) [UIFont fontWithName:KPFM size:font]
#define FontChange(fontName,font) [UIFont fontWithName:fontName size:(font) * GETPIXEL]
#define KPFR @"PingFangSC-Regular"
#define KPFM @"PingFangSC-Medium"


#define COLOR(R,G,B)             [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:1]
#define COLOR_ALPH(R,G,B,A)      [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]
#define ColorHex(hex)            [UIColor colorWithHexCode:hex]
#define ColorHex_Alpha(hex,a)    [UIColor colorWithHexCode:hex alpha:a]
#define ColorRandom              COLOR_ALPH(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256), 1)

//色彩配置
#define ColorClear          [UIColor clearColor]
#define ColorRed            [UIColor redColor]
#define ColorOrange         [UIColor orangeColor]
#define ColorWhite          [UIColor whiteColor]
#define ColorBlack          [UIColor blackColor]
#define ColorGreen          [UIColor greenColor]
#define ColorGray           [UIColor grayColor]
#define ColorDarkGray       [UIColor darkGrayColor]
#define ColorLightGray      [UIColor lightGrayColor]
#define ColorPurple         [UIColor purpleColor]
#define ColorCyan           [UIColor cyanColor]
#define ColorBlue           [UIColor blueColor]


#define MainBackgroundColor COLOR(245,245,245)

#define ChangeColor(width,height) [UIColor colorWithPatternImage:[UIImage gradientColorImageFromColors:@[ColorHex(@"#FFE28A"),ColorHex(@"#FFC152")] gradientType:GradientTypeTopToBottom imgSize:CGSizeMake(width, height)]]


#define ThreeColor          ColorHex(@"#333333")
#define SixColor            ColorHex(@"#666666")
#define SixColor_wite       ColorHex(@"#E6E6E6")
#define SixColor1_wite       ColorHex(@"#cccccc")
#define NineColor           ColorHex(@"#999999")

#define MainColor           ColorHex(@"#111316")
#define MainColor_wite      ColorHex(@"#F6F7F9")



#define Table_textColor          ColorHex(@"#333333")
#define Table_textColor_wite     ColorHex(@"#ffffff")

#define MainRedColor_wite     ColorHex(@"#E20098")
#define tabar_selectColor_wite   ColorHex(@"#FA71CD")

#define tabar_Color   ColorHex(@"#FFFFFF")
#define tabar_selectColor   ColorHex(@"#FE53DF")

#endif /* FontAndColorMacros_h */
